package com.gome.mapper;

import com.gome.entity.Menu;
import com.gome.entity.MenuLevel;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuMapper  {


    List<Menu> selecMenuListWithNext(int level);
    List<Menu> selectMenuList(int level);
    List<MenuLevel> selectMenuLevelList();

    void addMenu(Menu menu);

    void updateMenu(Menu menu);



    Menu   selectMenuByVcMenumc(Menu menu);

    Menu selectMenulevelByOcMenubm(String ocParentbm);


    List<Menu> queryNextMenu(String ocParentbm);

    void deleteMenu(String OcMenubm);

    void deleteRoleMenu(String OcMenubm);
}
